package com.springboot.project.common.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created with IntelliJ IDEA.
 * User: lby.
 * Date: 2018/4/7.
 * Version: V1.0.
 */
@Controller
@RequestMapping("/global")
public class GlobalController {

    /**
     * 错误页面
     * @return
     */
    @RequestMapping(path = "/error")
    public String errorPage() {
        return "404";
    }
}
